using System;
using System.Web.Mvc;
using InfoTech.Core.Data.SqlClient;
using InfoTech.Core.Service;
using InfoTech.LanTranh.MucVu.Bussiness;

namespace InfoTech.LanTranh.MucVu.Service
{
    public class HOGIADINH_DIACHIService : BaseService
    {
        public static bool Check_Insert_HOGIADINH_DIACHI(HOGIADINH_DIACHI hogiadinhDiaChi)
        {
            return true;
        }

        public static bool Check_Update_HOGIADINH_DIACHI(HOGIADINH_DIACHI hogiadinhDiachi)
        {
            return true;
        }

        public static bool Check_Delete_HOGIADINH_DIACHI(string[] strings)
        {
            return true;
        }

        public static void Delete(HOGIADINH_DIACHI hogiadinhDiachi)
        {
            foreach (GIAODAN_DIACHI giaodanDiachi in hogiadinhDiachi.REF_GIAODAN_DIACHI)
            {
                giaodanDiachi.Delete();
            }
        }

        public static void Delete(HOGIADINH hogiadinh)
        {
            foreach (HOGIADINH_DIACHI hogiadinhDiachi in hogiadinh.REF_HOGIADINH_DIACHI)
            {
                GIAODAN_DIACHIService.Delete(hogiadinhDiachi);
                hogiadinhDiachi.DeletebyId();
            }
        }
    }
}
